<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expInfo/index?expDict.expCode=${expInfo.expDict.expCode}')">消耗品基本信息列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expInfo/form?expDict.expCode=${expInfo.expDict.expCode}')">消耗品基本信息添加</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                            	<%--<form:form id="searchForm" modelAttribute="expInfo"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/csm/expInfo/index');" method="post" class="form-inline">--%>
                                    <%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
                                    <%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
                                    <%--<label>消耗品代码 ：</label><form:input path="expDict.expCode" htmlEscape="false" maxlength="50" class="form-control" />--%>
                                    <%--&nbsp;&nbsp;<label>消耗品名称 ：</label><form:input path="expDict.expName" htmlEscape="false" maxlength="50" class="form-control" />--%>
                                    <%--<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>--%>

                                <%--</form:form>--%>
                            </div>
                        </div>
                        <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                    <th hidden>消耗品代码</th>
                                    <th>名称</th>
                                    <th>型号</th>
                                    <th>规格</th>
                                    <th>单位</th>
                                    <th>生产厂家</th>
                                    <%--<th>最小单位规格</th>--%>
                                    <%--<th>最小单位</th>--%>
                                    <%--<th>批准文号</th>--%>
                                    <th>医疗器械注册证号</th>
                                    <th>执行标准</th>
                                    <th>检测方法</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="expInfo">
                                <tr>
                                    <td hidden> ${expInfo.expDict.expCode}</td>
                                    <td> ${expInfo.expDict.expName}</td>
                                    <td> ${expInfo.expDict.expModel}</td>
                                    <td> ${expInfo.packageSpec}</td>
                                    <td> ${fns:getDictLabels(expInfo.packageUnit, 'SPEC_UNIT', '')}</td>
                                    <td> ${expInfo.expSupplierCata.supplierName}</td>
                                    <%--<td> ${expInfo.passNo}</td>--%>
                                    <td> ${expInfo.medicalDeviceRegistNo}</td>
                                    <td> ${expInfo.executeStandardNo}</td>
                                    <td> ${fns:getDictLabels(expInfo.testMethod,'TEST_METHOD','')}</td>
                                    <%--<td> ${expInfo.minSpec}</td>--%>
                                    <%--<td> ${fns:getDictLabel(expInfo.minUnits,'SPEC_UNIT','')}</td>--%>
                                    <td>
                                        <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/csm/expInfo/form?id=${expInfo.id}')" class="btn btn-success btn-xs">修改</a>
                                        <%--<a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该消耗品基本信息吗？',function(){delLoad('rigthCenterDiv','${ctx}/csm/expInfo/delete?id=${expInfo.id}','${ctx}/csm/expInfo/index?expDict.expCode=${expInfo.expDict.expCode}')})">删除</a>--%>
                                    </td>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>